package com.qianfeng.service;

import com.qianfeng.dto.Page;
import com.qianfeng.entity.InHospital;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InHospitalService {
    /**
     * 添加住院信息
     * @param inHospital
     */
    void addInHospital(InHospital inHospital);

    /**
     * 修改住院信息
     * @param inHospital
     */
    void updateInHospital(InHospital inHospital);

    /**
     * 表面删除 更新
     * @param ihId
     */
    void deleteInHospital(Integer ihId);

    /**
     * 获取集合
     * @return
     */
    List<InHospital> getInHospitalList();

    /**
     * 通过ID获取
     * @return
     * @param ihId
     */
    InHospital getInHospitalById(int ihId);

    /**
     * 分页查询
     * @param pageNo
     * @param pageSize
     * @return
     */
    Page getInHospitalPage(Integer pageNo,Integer pageSize);

    /**
     * 缴纳押金
     * @param ihId
     * @param money
     */
    void addInHospitalMoney(@Param("ihId") Integer ihId, @Param("money") Double money);

    /**
     * 通过Rid查询
     * @param rId
     * @return
     */
    InHospital getInHospitalByRegistrationId(Integer rId);
}
